<?php
/**
* @version		$Id: default.php 2010-05-07 vinaora $
* @package		VINAORA SLICK SLIDESHOW
* @copyright	Copyright (C) 2010 VINAORA. All rights reserved.
* @license		GNU/GPL
* @website		http://vinaora.com
* @email		admin@vinaora.com
* 
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

?>

<!-- BEGIN: VINAORA SLICK SLIDESHOW -->
<!-- Website http://vinaora.com -->
<script type="text/javascript">

	// JAVASCRIPT VARS
	// cache buster
	var cacheBuster = "?t=" + Date.parse(new Date());		
	
	// stage dimensions
	var stageW = <?php echo $width; ?>;//"100%";
	var stageH = <?php echo $height; ?>;//"100%";        

	// ATTRIBUTES
	var attributes = {};
	attributes.id = '<?php echo $container; ?>';
	attributes.name = attributes.id;        

	// PARAMS
	var params = {};
	params.bgcolor = "<?php echo $backgroundColor; ?>";
	//params.menu = "false";
	//params.scale = 'noScale';
	//params.wmode = "opaque";
	//params.allowfullscreen = "true";
	//params.allowScriptAccess = "always";

	/* FLASH VARS */
	var flashvars = {};
	
	/// if commented / delete these lines, the component will take the stage dimensions defined 
	/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml	
	flashvars.componentWidth = stageW;
	flashvars.componentHeight = stageH;
	
	/// path to the content folder(where the xml files, images or video are nested)
	/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
	flashvars.pathToFiles = "";
	
	// path to content XML
	flashvars.xmlPath = "<?php echo $config_path; ?>"

	/** EMBED THE SWF**/
	swfobject.embedSWF("<?php echo $stage_path; ?>"+cacheBuster, attributes.id, stageW, stageH, "<?php echo $flash_version; ?>", "<?php echo $expressInstall_path; ?>", flashvars, params);

</script>

<!-- this div will be overwritten by SWF object -->
<div id="<?php echo $container; ?>" class="vslickshow<?php echo $moduleclass_sfx; ?>">
	<p>In order to view this object you need Flash Player 9+ support!</p>
	<a href="http://www.adobe.com/go/getflashplayer">
		<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
	</a>
	<br /><a href="http://vinaora.com/">Joomla! Slideshow</a>
</div>
<!-- Website http://vinaora.com -->
<!-- END: VINAORA SLICK SLIDESHOW  -->

